package com.base.bean;

import java.sql.Timestamp;
import java.util.List;

/**
 * Activity entity. @author MyEclipse Persistence Tools
 */

public class Activity implements java.io.Serializable {

	// Fields

	private Integer aid;
	private Integer cid;
	private Timestamp created;
	private Integer type,state ;
	private Integer addType,checked;
	private String address;
	private String longitude,latitude,photoName,clientName,path,checkmemo;
	private String content;
	private Integer creator;
	
	
	public static String getString(Activity activity){
		StringBuffer sb= new StringBuffer();
		sb.append(activity.getCreated().toLocaleString()+",");
		sb.append(activity.getCreator()+",");
		sb.append(activity.getChecked()+",");
		sb.append(activity.getAddress()+",");
		sb.append(activity.getPhotoName()+",");
		sb.append(activity.getContent()+",");
		sb.append(activity.getCheckmemo()+",");
		
		
		return sb.toString();
	}
	

	// Constructors

	/** default constructor */
	public Activity() {
	}

	/** minimal constructor */
	public Activity(Integer aid, Integer type) {
		this.aid = aid;
		this.type = type;
	}

	/** full constructor */
	public Activity(Integer aid, Integer cid, Integer type, Timestamp created,
			Integer addType, String address, String longitude,String latitude, Timestamp gpsTime,
			String content, Integer creator) {
		this.aid = aid;
		this.cid = cid;
		this.type = type;
		this.created = created;
		this.addType = addType;
		this.address = address;
		this.longitude = longitude;
		this.latitude = latitude;
		
		this.content = content;
		this.creator = creator;
	}

	// Property accessors

	public Integer getAid() {
		return this.aid;
	}

	public void setAid(Integer aid) {
		this.aid = aid;
	}

	public Integer getCid() {
		return this.cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	

	public Timestamp getCreated() {
		return created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getAddType() {
		return this.addType;
	}

	public void setAddType(Integer addType) {
		this.addType = addType;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}



	public Integer getChecked() {
		return checked;
	}

	public void setChecked(Integer checked) {
		this.checked = checked;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	

	public String getCheckmemo() {
		return checkmemo;
	}

	public void setCheckmemo(String checkmemo) {
		this.checkmemo = checkmemo;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getCreator() {
		return this.creator;
	}

	public void setCreator(Integer creator) {
		this.creator = creator;
	}

	public String getPhotoName() {
		return photoName;
	}

	public void setPhotoName(String photoName) {
		this.photoName = photoName;
	}

	public String getClientName() {
		return clientName;
	}

	public void setClientName(String clientName) {
		this.clientName = clientName;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}


	

}